<template>
    <div class="films-box">
        <div class="list-name">
            <span>热门电影</span>
        </div>
        <film-list class="content-list" :list="films"></film-list>
    </div>
</template>
<script src="../datas/films.js"></script>
<script>
    Vue.component("FilmPage", {
        template: document.currentScript.ownerDocument.querySelector("template"),
        data() {
            return {
                films: films.result
            }
        }
    })
</script>